package com.xb.mapper;

import com.xb.entity.Register;
import com.xb.entity.User;

import java.util.List;

/**
 * Mapper接口
 */
//@Mapper
public interface RegisterMapper {

    public Register selectRegister(Register register);

    public List<Register> selectRegisterStatus(Register register);

    public List<Register> selectIncumbentsByDeId(Integer departmentId);

    public int updateRegisterStatus(Register register);

    public List<Register> checkHaveAnAppointmentToday(int cardId);

    public int selectNowNum(User user);


    public List<Register> selectAllRegisterList(Register register);

    /**
     * 新增
     *
     * @param register
     * @return 结果
     */
    public int insertRegister(Register register);

    /**
     * 修改
     *
     * @param register
     * @return 结果
     */
    public int updateRegister(Register register);


}
